package com.corecloud.service;




import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.corecloud.entity.SysPermissionRoleEntity;

import java.util.Map;
import java.util.List;

/**
 *
 *
 * @author CCW
 * @email 452050507@qq.com
 * @date 2020-08-25 11:14:24
 */
public interface SysPermissionRoleService {


    /**
     * 根据条件查询SysPermissionRoleEntity信息
     *
     * @param qw
     * @return SysPermissionRoleEntity信息
     */
    SysPermissionRoleEntity getByParas(QueryWrapper<SysPermissionRoleEntity> qw);


    /**
     * 根据条件查询SysPermissionRoleEntity信息
     *
     * @param qw
     * @return SysPermissionRoleEntity信息集合
     */
    List<SysPermissionRoleEntity> getListByParas(QueryWrapper<SysPermissionRoleEntity> qw);

    /**
     * 根据权限ID更新权限与角色关联表信息
     * @param pid
     * @return
     */
    Integer updateInfoByPid(Integer pid);

    /**
     * 根据角色ID更新权限与角色关联表信息
     * @param rid
     * @return
     */
    Integer updateInfoByRid(Integer rid);

    /**
     * 插入信息
     * @param info
     * @return
     */
    Integer saveInfo(SysPermissionRoleEntity info);

    /**
     * 删除信息
     * @param qw
     * @return
     */
    Integer deleteInfo(QueryWrapper<SysPermissionRoleEntity> qw);



}

